package com.mz.auth.service;


import com.mz.auth.entity.User;
import com.mz.auth.query.UserQuery;
import com.mz.auth.util.PageList;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserService {
    //分页查询用户
    PageList listPage(UserQuery userQuery);

    Long addUser(User user);

    void editUser(User user);

    void deleteUser(Long id);

    void deleteBatchUser(Long[] ids);

    //保存用户角色
    void saveUserRole(Map paramMap);

    //据用户名查询用户
    User findUserByUsername(String username);

    //老师注册
    Long addTeacher(User user);

    //根据用户Id修改头像图片
    void updateHeadImgByUser(User user);

    User queryUserById(@Param("id") Long id);
}
